<?php
	require_once( "inc_systemFunctions.php" );
	
	if( !empty( $_GET['blobId'] ) ){
		$sql  = "SELECT * FROM productImages WHERE id='" . $_GET['blobId'] . "'";
		$res  = mysql_query( $sql );
		$data = mysql_result( $res, 0, "bin_data" );
		$type = mysql_result( $res, 0, "filetype" );
		
		header( "Content-type: " . $type );
		echo $data;
	}
?>
